package com.func.boom.filter;

import com.func.boom.enums.ResultEnums;
import com.func.boom.utils.ResultEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Yulei
 * @date 2020-08-21 19:13:06
 * @desc
 */
@RestController
@Slf4j
public class FallbackFilter {

    @GetMapping("/fallback")
    public ResultEntity<?> fallback() {
        log.error("网关访问异常,跳转回调执行");
        return ResultEntity.error(ResultEnums.ERROR_10010);
    }

}
